package com.swu.dto;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDate;

@Data
public class SurgeryDTO {
    @NotBlank(message = "手术操作编码不能为空")
    private String surgeryCode;

    @NotNull(message = "手术日期不能为空")
    private LocalDate surgeryDate;

    @NotBlank(message = "手术操作名称不能为空")
    private String surgeryName;

    @NotNull(message = "手术级别不能为空")
    @Min(value = 1, message = "手术级别不正确")
    @Max(value = 4, message = "手术级别不正确")
    private Integer surgeryLevel;

    @NotBlank(message = "术者不能为空")
    private String surgeon;

    private String assistant1;

    private String assistant2;

    @Min(value = 0, message = "切口愈合类别代码不正确")
    @Max(value = 3, message = "切口愈合类别代码不正确")
    private Integer healingGrade;

    @NotBlank(message = "麻醉方式不能为空")
    private String anesthesiaType;

    @NotBlank(message = "麻醉医师不能为空")
    private String anesthesiologist;
} 